package com.dmz.szsf.tempuri;

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.Stub;

public class WebServiceBankSoapProxy implements WebServiceBankSoap {
    private String _endpoint = null;
    private WebServiceBankSoap webServiceBankSoap = null;

    public WebServiceBankSoapProxy() {
        this._initWebServiceBankSoapProxy();
    }

    public WebServiceBankSoapProxy(String endpoint) {
        this._endpoint = endpoint;
        this._initWebServiceBankSoapProxy();
    }

    private void _initWebServiceBankSoapProxy() {
        try {
            this.webServiceBankSoap = (new WebServiceBankLocator()).getWebServiceBankSoap();
            if (this.webServiceBankSoap != null) {
                if (this._endpoint != null) {
                    ((Stub)this.webServiceBankSoap)._setProperty("javax.xml.rpc.service.endpoint.address", this._endpoint);
                } else {
                    this._endpoint = (String)((Stub)this.webServiceBankSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
                }
            }
        } catch (ServiceException var2) {
        }

    }

    public String getEndpoint() {
        return this._endpoint;
    }

    public void setEndpoint(String endpoint) {
        this._endpoint = endpoint;
        if (this.webServiceBankSoap != null) {
            ((Stub)this.webServiceBankSoap)._setProperty("javax.xml.rpc.service.endpoint.address", this._endpoint);
        }

    }

    public WebServiceBankSoap getWebServiceBankSoap() {
        if (this.webServiceBankSoap == null) {
            this._initWebServiceBankSoapProxy();
        }

        return this.webServiceBankSoap;
    }

    public String helloWorld() throws RemoteException {
        if (this.webServiceBankSoap == null) {
            this._initWebServiceBankSoapProxy();
        }

        return this.webServiceBankSoap.helloWorld();
    }

    public String queryAcc(String queryinput) throws RemoteException {
        if (this.webServiceBankSoap == null) {
            this._initWebServiceBankSoapProxy();
        }

        return this.webServiceBankSoap.queryAcc(queryinput);
    }

    public String payFee(String payFeeintput) throws RemoteException {
        if (this.webServiceBankSoap == null) {
            this._initWebServiceBankSoapProxy();
        }

        return this.webServiceBankSoap.payFee(payFeeintput);
    }

    public String balanceTotal(String balanceTotalintput) throws RemoteException {
        if (this.webServiceBankSoap == null) {
            this._initWebServiceBankSoapProxy();
        }

        return this.webServiceBankSoap.balanceTotal(balanceTotalintput);
    }
}
